package nuc.sw.test.calculator;

import javax.swing.*;
import java.awt.*;


public class SimpleCalculator extends  JFrame  {

    public SimpleCalculator(String str) {
        super(str);
        //this.setTitle("这是一个新的标题");
        this.setSize(300,260);
        this.setVisible(true);
        this.setLocation(600,400);
        this.setResizable(false);
        this.setVisible(true);
        getContentPane().setBackground(Color.orange);

    }

    public static void main(String[] args) {
        SimpleCalculator s = new SimpleCalculator("这是一个新的标题");
        //JFrame jf = new JFrame("hello");
//        jf.setSize(400,600);
//        jf.setVisible(true);
//        jf.setResizable(false);
        JLabel jl = new JLabel("这是文本区");
        jl.setFont(new Font("楷体",Font.BOLD,20));
        s.add(jl);




    }

}
